﻿using MediatR;
using Traceability.Commont.DTOs.CommontFiles;
using Yitter.IdGenerator;

namespace U.Enterprise.Api.Applications.Scalesetting
{
    public class LiveAnimalWeighingCreateCommand:IRequest<Resqults>
    {
        /// <summary>
        /// 进场id
        /// </summary>
        public int ApproachId { get; set; }
        /// <summary>
        /// 称重单据编号
        /// </summary>
        public string LiveAnimalweighingNo { get; set; } = YitIdHelper.NextId().ToString();
        /// <summary>
        /// 进场编号
        /// </summary>
        public string ApproachNo { get; set; }
        /// <summary>
        /// 毛重
        /// </summary>
        public decimal GrossWeight { get; set; }
        /// <summary>
        /// 皮重
        /// </summary>
        public decimal Tare { get; set; }
        /// <summary>
        /// 净重
        /// </summary>
        public decimal NetWeight { get; set; }
        /// <summary>
        /// 均重
        /// </summary>
        public decimal AverageWeight { get; set; }
        /// <summary>
        /// 称重头数
        /// </summary>
        public int WeightNum { get; set; }
        /// <summary>
        /// 入圈圈号/代宰圈
        /// </summary>
        public int SlaughterCircleId { get; set; }
        /// <summary>
        /// 入圈头数
        /// </summary>
        public int SlaughterCircleNum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 称重时间
        /// </summary>
        public DateTime WeighTime { get; set; }
        /// <summary>
        /// 扣减项
        /// </summary>
        public string Deductions { get; set; }
        /// <summary>
        /// 磅秤id
        /// </summary>
        public int Scaleid { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }
    }
}
